//
//  RedEnvelopeVC.m
//  RPay
//
//  Created by hzy on 2017/10/29.
//  Copyright © 2017年 Charlie. All rights reserved.
//

#import "RedEnvelopeVC.h"
#import "ChooseRedPacketVC.h"
#import "FriendVC.h"
#import "RedPacketRecordVC.h"
#import "ShareUser.h"
#import "RobVC.h"

@interface RedEnvelopeVC ()

@end

@implementation RedEnvelopeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"红包";
    [[NSNotificationCenter defaultCenter]postNotificationName:@"updateuserinfor" object:nil];
    NSLog(@"%@",[ShareUser shareUser].userName);

    // Do any additional setup after loading the view from its nib.
}
- (IBAction)sendRedPacktBtnClick:(UIButton *)sender {
    self.navigationController.tabBarController.tabBar.hidden = YES;
    ChooseRedPacketVC * vc = [[ChooseRedPacketVC alloc] initWithNibName:@"ChooseRedPacketVC" bundle:[NSBundle mainBundle]];
    vc.hidesBottomBarWhenPushed =YES;
    [self.navigationController pushViewController:vc animated:YES];
}
- (IBAction)friendListBtnClick:(UIButton *)sender {

    FriendVC * vc = [[FriendVC alloc] initWithNibName:@"FriendVC" bundle:[NSBundle mainBundle]];
    vc.hidesBottomBarWhenPushed =YES;
    [self.navigationController pushViewController:vc animated:YES];
}
- (IBAction)recordBtnClick:(UIButton *)sender {

    RedPacketRecordVC * vc = [[RedPacketRecordVC alloc] initWithNibName:@"RedPacketRecordVC" bundle:[NSBundle mainBundle]];
    vc.hidesBottomBarWhenPushed =YES;
    [self.navigationController pushViewController:vc animated:YES];
    
    
}
- (IBAction)robBtnClick:(UIButton *)sender {

    RobVC * vc = [[RobVC alloc] initWithNibName:@"RobVC" bundle:[NSBundle mainBundle]];
    vc.hidesBottomBarWhenPushed =YES;
    [self.navigationController pushViewController:vc animated:YES];
    
}



@end
